package com.hb.game.pk.ui.activity.mine.customer_center;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.hb.game.pk.R;
import com.hb.game.pk.base.BaseActivity;
import com.hb.game.pk.widgets.titlebar.TitleBar;

import butterknife.BindView;
import butterknife.OnClick;

public class ServiceCenterActivity extends BaseActivity {
    @BindView(R.id.title_bar)
    TitleBar titleBar;
    @BindView(R.id.ll_sys_notice)
    LinearLayout llSysNotice;
    @BindView(R.id.ll_customer_center)
    LinearLayout llCustomerCenter;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_service_center;
    }

    @Override
    protected int getRootViewId() {
        return R.id.layout_root;
    }

    @Override
    protected int getRefreshId() {
        return 0;
    }

    @Override
    protected int getListViewId() {
        return 0;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        super.initView(savedInstanceState);
        titleBar.getLlLeft().setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ServiceCenterActivity.this.finish();
            }
        });
    }

    @OnClick({R.id.ll_sys_notice, R.id.ll_customer_center})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.ll_sys_notice:
                startActivity(SysNoticeActivity.class);
                break;
            case R.id.ll_customer_center:
                startActivity(CustomerCenterActivity.class);
                break;
        }
    }
}
